<div class="headerW">
    <div class="header">
        <div class="logo">
            <a href="/">
                <img src="{GetSetting key="site_logo"}" alt="{GetSetting key="site_name"}" />
            </a>
        </div>
        <div class="navW">
            <div class="nav">
                <ul>
                    <li><a href="/">首页</a></li>
                    {NewsCategory assign="instance" loadChild=true}
                        {foreach from=$instance->data key=$key item=$value}
                            <li>
                                <a href="{$value['url']}">{$value['name']}</a>
                                {if $value['had_children']}
                                    <div class="sub_nav">
                                        <ul>
                                            {foreach from=$value['children'] item=$subVal}
                                            <li>
                                                <a href="{$subVal['url']}">
                                                    {$subVal['name']}
                                                </a>
                                            </li>
                                            {/foreach}
                                        </ul>
                                    </div>
                                {/if}
                            </li>
                        {/foreach}
                    {/NewsCategory}
                </ul>
            </div>
        </div>

        <div class="hr">
            <div class="topSearchBox">
                <div class="btnSearchS"></div>
                <div class="searchBox">
                    <form method="">
                        <input class="input" type="text" placeholder="搜索..." value="" />
                        <div class="btn"></div>
                    </form>
                </div>
            </div>
            <div class="lan"><span class="item">EN</span></div>
        </div>
        <div class="c-switch">
            <i></i>
            <i></i>
            <i></i>
        </div>
    </div>
</div>
